package com.fang.rpc;

import io.jboot.app.JbootApplication;

/**
 * @author fangdengfu
 * @date 19-1-26 下午2:55
 */
public class JbootSrvApp {

    public static void main(String[] args) {

        JbootApplication.setBootArg("undertow.port", 9091);

        // rpc config
        JbootApplication.setBootArg("jboot.rpc.type", "dubbo");
        JbootApplication.setBootArg("jboot.rpc.autoExportEnable", true);
        JbootApplication.setBootArg("jboot.rpc.registryType", "zookeeper");
        JbootApplication.setBootArg("jboot.rpc.registryAddress", "192.168.3.92:2181");
        JbootApplication.setBootArg("jboot.rpc.registryName", "test");
        JbootApplication.setBootArg("jboot.rpc.defaultGroup", "test");
        JbootApplication.setBootArg("jboot.rpc.defaultVersion", "1.0");

        // 重点：项目扫不到资源路径导致rpc注册异常
        JbootApplication.setBootArg("undertow.resourcePath", "src/main/resources");

        JbootApplication.run(args);
    }

}
